package sh.wn36.vehiclemanage.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author xk
 * @since 2021-04-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="FeesManager对象", description="")
public class FeesManager implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("CAR_ID")
    private Integer carId;

    @TableField("FEES_NAME")
    private String feesName;
    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    @TableField("FEES_DATE")
    private Date feesDate;

    @TableField("FEES_AMOUNT")
    private BigDecimal feesAmount;

    @TableField("FEES_UNIT")
    private Integer feesUnit;

    @TableField("OPERATOR")
    private Integer operator;

    @TableField("REMARKS")
    private String remarks;

    @Version
    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "乐观锁")
    private  Integer version;
}
